package com.framework.file.api;

import com.google.common.collect.Maps;
import com.framework.common.domain.ResultData;
import com.framework.file.model.SysFile;
import feign.Response;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

@Component
public class FileServiceFallback implements FileService {

	@Override
	public ResultData upload(MultipartFile file, String module, String form, String part, String createrId, String createrComId) {
		return null;
	}

	@Override
	public Response download(String id) {
		return null;
	}

	@Override
	public ResultData previewBatch(List<String> idsList) {
		return ResultData.data(Maps.newHashMap());
	}

	@Override
	public ResultData<SysFile> getFileById(String id) {
		return null;
	}

	@Override
	public ResultData apiUploadAndUpdate(SysFile fastDFSFile, String oldFileId) {
		return null;
	}

	@Override
	public ResultData apiUpdateFile(SysFile fastDFSFile) {
		return null;
	}

	@Override
	public ResultData<Map<String, List<SysFile>>> getFiles(String module, String form, String part) {
		return null;
	}

	@Override
	public ResultData<Map<String, List<SysFile>>> getFiles(String form) {
		return null;
	}

	@Override
	public ResultData deleteFilesByForm(String form, String part) {
		return null;
	}

}
